package com.bootdo.clouddo.service.douban.impl;

import com.bootdo.clouddo.dao.douban.DbUserMapper;
import com.bootdo.clouddo.domain.douban.DbUser;
import com.bootdo.clouddo.service.douban.IDbUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DbUserServiceImpl implements IDbUserService {

    @Autowired
    private DbUserMapper dao;

    @Override
    public DbUser findById(Long id) {
        return dao.selectByPrimaryKey(id);
    }

    @Override
    public int save(DbUser user) {
        return dao.insertSelective(user);
    }
}
